/**
 * Created by likaiboy on 2017/9/24.
 */
var fs = require("fs");
fs.stat('fbb.txt', (err, res)=> {
    console.log(res)
})
// flag ,w表示擦除写入，a表示追加写入
fs.writeFile('fbb.txt', '1010101', {flag:'w', encoding: 'utf-8'}, (err)=> {
    if (err) throw err;
    console.log('success')
})